package com.example.demo2.test.controller;

import com.example.demo2.test.model.BaseEntity;
import com.example.demo2.test.service.HuobiService;
import com.example.demo2.test.service.OkService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Optional;

/**
 * @Description
 * @Author ChenXi
 * @Date 2023/03/27/15:35
 */

@RestController
@Slf4j
public class HuobiController {

    @Autowired
    private HuobiService huobiService;


    @RequestMapping("/huobi")
    public String coinTest(){
        huobiService.onMarket();
        return "huobiService controller 申请链接了";
    }

    @RequestMapping("/huobi/k")
    public String sendK(){
        huobiService.Kxian();
        return "huobiService Kxian 申请链接了";
    }

}
